using System.ComponentModel;
using System.Windows.Forms;
using WindowsLive.Writer;

namespace XFNRelationsPlugIn
{
	/// <summary>
	/// Summary description for XFNRelationsInsertForm.
	/// </summary>
	public class XFNRelationsInsertForm : Form
	{
		private Button buttonOK;
		private Button buttonCancel;
		private XFNRelationsControl xfnRelationsControl;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private Container components = null;

		public XFNRelationsInsertForm()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.buttonOK = new System.Windows.Forms.Button();
            this.buttonCancel = new System.Windows.Forms.Button();
            this.xfnRelationsControl = new XFNRelationsPlugIn.XFNRelationsControl();
            this.SuspendLayout();
            // 
            // buttonOK
            // 
            this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.buttonOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.buttonOK.Location = new System.Drawing.Point(54, 347);
            this.buttonOK.Name = "buttonOK";
            this.buttonOK.Size = new System.Drawing.Size(64, 23);
            this.buttonOK.TabIndex = 1;
            this.buttonOK.Text = "OK";
            // 
            // buttonCancel
            // 
            this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.buttonCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.buttonCancel.Location = new System.Drawing.Point(126, 347);
            this.buttonCancel.Name = "buttonCancel";
            this.buttonCancel.Size = new System.Drawing.Size(64, 23);
            this.buttonCancel.TabIndex = 2;
            this.buttonCancel.Text = "Cancel";
            // 
            // xfnRelationsControl
            // 
            this.xfnRelationsControl.Location = new System.Drawing.Point(1, 7);
            //this.xfnRelationsControl.Message = "Hello World!";
            //this.xfnRelationsControl.Message = ;
            this.xfnRelationsControl.Name = "xfnRelationsControl";
            this.xfnRelationsControl.Size = new System.Drawing.Size(200, 339);
            this.xfnRelationsControl.TabIndex = 0;
            // 
            // XFNRelationsInsertForm
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(202, 382);
            this.ControlBox = false;
            this.Controls.Add(this.xfnRelationsControl);
            this.Controls.Add(this.buttonCancel);
            this.Controls.Add(this.buttonOK);
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "XFNRelationsInsertForm";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Insert XFN Relationship";
            this.ResumeLayout(false);

		}
		#endregion

		public string Message
		{
			get { return xfnRelationsControl.Message; }
			set { xfnRelationsControl.Message = value; }
		}
	}
}
